package com.yazdee;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class CatalogBrowse extends HttpServlet {

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws IOException {
		

		
		   StringBuffer buffer=new StringBuffer();
	       
	       String requestUrl = null;
	      	
			/*	resp.getWriter().println("<Response>" +
											"An error occured while trying to contact RetailMart servers. Please try after sometime" +
										 "</Response>");
	       */
			buffer.append("<Response>\n");
			buffer.append("<product>");
			buffer.append("<name>"+"Testing Client/Server Systems"+"</name>");
			buffer.append("<SKU>"+"testing-client-server-systems"+"</SKU>");
			buffer.append("<price>"+"Rs. 2,497.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0070066884.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Image Structure"+"</name>");
			buffer.append("<SKU>"+"image-structure"+"</SKU>");
			buffer.append("<price>"+"Rs 11,972.00"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0792348087.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Predators and Profits - 100+ Ways for Investors to Protect Their Nest Eggs "+"</name>");
			buffer.append("<SKU>"+"predators-and-profits-100"+"</SKU>");
			buffer.append("<price>"+"Rs 1,247.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0131402447.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Managing TCP/IP Networks: Techniques, Tools and Security"+"</name>");
			buffer.append("<SKU>"+"managing-tcp-ip-networks-techniques"+"</SKU>");
			buffer.append("<price>"+"Rs 4,497.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0471800031.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Java 2 Performance and Idiom Guide"+"</name>");
			buffer.append("<SKU>"+"java-2-performance-and-idiom"+"</SKU>");
			buffer.append("<price>"+"Rs 1,999.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0130142603.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Carol Vorderman*s Guide to the Internet"+"</name>");
			buffer.append("<SKU>"+"carol-vorderman-s-guide-to"+"</SKU>");
			buffer.append("<price>"+"Rs 818.00"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0130908916.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Superminds : People Harness Hypercomputation, And More (studies In Cognitive Systems)"+"</name>");
			buffer.append("<SKU>"+"superminds-people-harness"+"</SKU>");
			buffer.append("<price>"+"Rs 8,229.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img140201094X.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"The Art of Computer Programming - Fundamental Algorithms"+"</name>");
			buffer.append("<SKU>"+"the-art-of-computer-programming1"+"</SKU>");
			buffer.append("<price>"+"Rs 3,499.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0201896834.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Algorithms From P To Np - Design And Efficiency"+"</name>");
			buffer.append("<SKU>"+"algorithms-from-p-to-np-design"+"</SKU>");
			buffer.append("<price>"+"Rs 3,270.00"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0805380086.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("<product>");
			buffer.append("<name>"+"Information Overload: Creating Value With The New Information Systems Technology "+"</name>");
			buffer.append("<SKU>"+"information-overload-creating"+"</SKU>");
			buffer.append("<price>"+"Rs 1,497.50"+"</price>");
			buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/delhibookstore/thumbnails/img0135276314.jpg"+"</imageURL>");
			buffer.append("</product>");
			
			buffer.append("</Response>");
			
			resp.setContentType("text/xml");
			
	       resp.getWriter().print(buffer.toString());
			resp.flushBuffer();
}
}
